package com.zlm.exception;

import com.zlm.enums.AppHttpCodeEnum;

/**
 * @author zlm
 * @date 2024/12/10
 */
public class SystemException extends RuntimeException{
    private Integer code;

    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public SystemException(AppHttpCodeEnum appHttpCode) {
        super(appHttpCode.getMsg());
        this.code = appHttpCode.getCode();
        this.msg = appHttpCode.getMsg();
    }
}
